package com.cmfi.service.inter;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.cmfi.domain.Equipment;

@Transactional
public interface EquipmentService {

    /**
     * 保存
     * @param readMe
     * @return
     */
	public boolean save(Equipment equipment) throws Exception;
	
	/**
	 * Updates an equipment.
	 *
	 * @param readMe the entity to update.
	 * @return the persisted entity.
	 */
	public boolean update(Equipment equipment, Long id) throws Exception;
	
	/**
     * 按id删除
     * @param id
     * @return
     */
    public boolean delete(Long id);
    
    /**
	 * Get all the equipments
	 *
	 * @param pageNum pageSize
	 * @return the list of entities.
	 */
	 List<Equipment> findByPage(Long pageNum, Long pageSize) throws Exception;
	 
	 /**
	  * Get all the equipments.
	  *
	  * @return the list of entities.
	  */
	 List<Equipment> findByPageAndStatus(Long pageNum, Long pageSize) throws Exception;
	 
	 /**
	  * Get all the equipments.
	  *
	  * @return the list of entities.
	  */
	 List<Equipment> findByPageAndWarnings(Long pageNum, Long pageSize) throws Exception;
}
